package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.SurveyElectricEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 勘测甲方用电情况记录Mapper接口
 *
 * @author wutao
 * @date 2024-05-22
 */
@Mapper
public interface SurveyElectricMapper extends BaseMapper<SurveyElectricEntity> {
    /**
     * 查询勘测甲方用电情况记录
     *
     * @param id 勘测甲方用电情况记录ID
     * @return 勘测甲方用电情况记录
     */
    SurveyElectricEntity selectErpSurveyElectricInfoById ( String id );

    /**
     * 查询勘测甲方用电情况记录列表
     *
     * @param erpSurveyElectricInfo 勘测甲方用电情况记录
     * @return 勘测甲方用电情况记录集合
     */
    List<SurveyElectricEntity> selectErpSurveyElectricInfoList ( SurveyElectricEntity erpSurveyElectricInfo );

    /**
     * 新增勘测甲方用电情况记录
     *
     * @param erpSurveyElectricInfo 勘测甲方用电情况记录
     * @return 结果
     */
    int insertErpSurveyElectricInfo ( SurveyElectricEntity erpSurveyElectricInfo );

    /**
     * 修改勘测甲方用电情况记录
     *
     * @param erpSurveyElectricInfo 勘测甲方用电情况记录
     * @return 结果
     */
    int updateErpSurveyElectricInfo ( SurveyElectricEntity erpSurveyElectricInfo );

    /**
     * 通过勘测基础数据表的Id修改记录
     * 由于用电情况属于基础数据表的子表，一般通过该方法进行修改
     * @param surveyElectricEntity
     * @return
     */
    int updateSurveyElectricByBaseDataId (SurveyElectricEntity surveyElectricEntity );

    /**
     * 删除勘测甲方用电情况记录
     *
     * @param id 勘测甲方用电情况记录ID
     * @return 结果
     */
    int deleteErpSurveyElectricInfoById ( String id );

    /**
     * 批量删除勘测甲方用电情况记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteErpSurveyElectricInfoByIds ( String[] ids );
}
